package com.kay.controller;

import com.kay.pojo.Account;
import com.kay.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/7/13$ 22:01$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/7/13$ 22:01$
 */
@Controller
@RequestMapping("/account")
public class AccountController {

    @Autowired
    private AccountService accountService;

    @RequestMapping("/findAll")
    @ResponseBody
    public List<Account> findAll() {
        return accountService.findAll();
    }
}
